| Chart for WPF and Silverlight > Chart Features > Performance Optimization > Performing Batch Updates |
You can perform batch updates without refreshing the chart after each change by entering your code inside the BeginUpdate()/EndUpdate() methods like the following:
| Visual Basic |
Copy Code
|
|---|---|
C1Chart1.BeginUpdate()
' change or format the chart, add data etc.
...
C1Chart1.EndUpdate()
|
|
| C# |
Copy Code
|
|---|---|
c1Chart1.BeginUpdate();
//change or format the chart, add data etc.
...
c1Chart1.EndUpdate();
|
|